package com.project.personnel.config;

import org.springframework.web.bind.annotation.ExceptionHandler;

public class GlobalExceptionHandler {
    @ExceptionHandler(RuntimeException.class) //捕获所有运行时异常
    public String exceptionHandler(){
        return "error";
    }
}
